What is Prompt Engineering?

Prompt engineering involves crafting specific instructions or questions (i.e. inputs) to guide a computer program in generating desired content (i.e. outputs) effectively. Within the world of generative artificial intelligence (AI), prompt engineering allows users to leverage AI models -often referred to as language models (LMs) or large language models (LLMs)- and the natural language processing (NLP, or the instructions that allow computers to interact with humans) capabilities of those models to generate customized content (i.e. outputs) that is designed according to the specifics of the prompt (i.e. input).

Infographic demonstrating how large language models with natural language processing capabilities are developed.
How natural language processing works from Zapier

In simpler terms, prompt engineering is the development of clear and specific instructions that are then fed to a computer program in order to get the desired, specific, and accurate response. It is like writing out a recipe for a peanut butter, banana, and honey sandwich, giving that recipe -with the ingredients and the instructions- to a person who has the ingredients and utensils necessary to make the sandwich, and then having this person make the sandwich.

While prompt engineering can be used to effectively interact with all kinds of machines and computer programs, for the purpose of this wiki, the focus is on prompt engineering for language models (and large language models) made available through OpenAI (ChatGPT) and Microsoft (Copilot). However, if users prefer to use and/or experiment with other LLMs such as those offered by Google (Gemini), Meta/Facebook (Llama), or others, the information and guidance provided here can be used with those tools as well.

 

About this Guide

This guide is intended for all users, from those with little-to-no experience using large language models (LLMs) like ChatGPT or Copilot to those who have extensive experience with LLMs but are looking to do more. The guide is organized into sections, beginning with “The Basics” before moving into more “Prompting Techniques” for prompt engineering.

This resource is a “living document” with written and video content that will change as artificial intelligence and the technologies that use AI change. The resource will also change as requested to best address the needs of users of the guide. If there is information or examples users would like to see added to this guide, email [email protected].

The Basics

Prompting Techniques

Sample Prompts (more coming soon)